package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.GoodsSpecGroup;
import com.ecoolex.chinadutyfree.retailer.entity.GoodsSpecGroupExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface GoodsSpecGroupMapper {
    long countByExample(GoodsSpecGroupExample example);

    int deleteByExample(GoodsSpecGroupExample example);

    int deleteByPrimaryKey(Integer specGroupId);

    int insert(GoodsSpecGroup record);

    int insertSelective(@Param("record") GoodsSpecGroup record, @Param("selective") GoodsSpecGroup.Column ... selective);

    GoodsSpecGroup selectOneByExample(GoodsSpecGroupExample example);

    List<GoodsSpecGroup> selectByExample(GoodsSpecGroupExample example);

    GoodsSpecGroup selectByPrimaryKey(Integer specGroupId);

    GoodsSpecGroup selectByPrimaryKeyWithLogicalDelete(@Param("specGroupId") Integer specGroupId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") GoodsSpecGroup record, @Param("example") GoodsSpecGroupExample example, @Param("selective") GoodsSpecGroup.Column ... selective);

    int updateByExample(@Param("record") GoodsSpecGroup record, @Param("example") GoodsSpecGroupExample example);

    int updateByPrimaryKeySelective(@Param("record") GoodsSpecGroup record, @Param("selective") GoodsSpecGroup.Column ... selective);

    int updateByPrimaryKey(GoodsSpecGroup record);

    int batchInsert(@Param("list") List<GoodsSpecGroup> list);

    int batchInsertSelective(@Param("list") List<GoodsSpecGroup> list, @Param("selective") GoodsSpecGroup.Column ... selective);

    int logicalDeleteByExample(@Param("example") GoodsSpecGroupExample example);

    int logicalDeleteByPrimaryKey(Integer specGroupId);
}